#!/usr/bin/env python3

try:
    meinv = zhaoliying
    f = open('daydayup.txt', 'w')
    f.write('sanle python cali\n')
    f.close()
    """
    except (NameError, FileNotFoundError):
        print('error')
    """
except NameError as e:
    print(e)
    dir(e)
    print('please check the name of variable')
except FileNotFoundError:
    print('file is not found,please check the path of file')
else:
    print('ok')
